#include "realDataThread.h"
#include <QDebug>


realDataThread::realDataThread(int &temperature, int &humidity, int &light, int &co2, int &pressure)
{
    this->temperature=temperature;
    this->humidity=humidity;
    this->light=light;
    this->co2=co2;
    this->pressure=pressure;
}

void realDataThread::setData(int &temperature, int &humidity, int &light, int &co2, int &pressure)
{
    this->temperature=temperature;
    this->humidity=humidity;
    this->light=light;
    this->co2=co2;
    this->pressure=pressure;
}

void realDataThread::run()
{
 //   qDebug()<<"run线程开始了";
    qDebug()<<"run线程开始了"<<temperature<<humidity;
    emit sendData(temperature,humidity,light,co2,pressure);
}
